<!--
 * @Author: wuwle
 * @Date: 2021-07-16 17:12:11
 * @LastEditors: wuwle
 * @LastEditTime: 2021-07-16 17:21:26
 * @FilePath: \demo\复习\css\行内元素padding.html
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      /* 行内元素左右padding,margin有效，上下无效 */
      body {
        margin: 0;
      }
      span {
        padding: 20px;
        /* margin: 30px; */
      }
    </style>
  </head>
  <body>
    <div>
      <span>11</span>
      <span>22</span>
      <p>333</p>
    </div>
  </body>
</html>
